﻿@using DTcms.Common;
@{
    ViewBag.Title = "回复评论";
}
@model DTcms.Model.article_comment
<form id="form1" class="layui-form" url="CommentSave?id=@ViewBag.id&channel_id=@Model.channel_id">
    @Html.AntiForgeryToken()
    <!--导航栏-->
    <div class="pageheader">
        <div class="page-bar">
            <ul class="page-breadcrumb">
                <li><a href="../article/comment_list?channel_id=@Model.channel_id" class="back"><i class="fa fa-mail-reply-all"></i> 返回列表页</a></li>
                <li><a href="javascript:;"><i class="iconfont icon-home1"></i> 首页</a> </li>
                <li><a href="../article/comment_list?channel_id=@Model.channel_id">评论管理</a> </li>
                <li><a href="javascript:;">回复评论</a> </li>
            </ul>
        </div>
    </div>
    <!--/导航栏-->
    <!--内容-->
    <div class="layui-fluid">
        <div class="layui-tab layui-tab-card">
            <ul class="layui-tab-title" id="floatHead">
                <li class="layui-this">回复评论信息</li>
            </ul>
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                    <div class="layui-form-item">
                        <label class="layui-form-label">信息标题</label>
                        <div class="layui-input-block">@(new DTcms.BLL.article().GetTitle(Model.channel_id, Model.article_id))</div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">评论用户</label>
                        <div class="layui-input-block">@Model.user_name</div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">用户IP</label>
                        <div class="layui-input-block">@Model.user_ip</div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">系统</label>
                        <div class="layui-input-block">@Model.system</div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">城市</label>
                        <div class="layui-input-block">@Model.city</div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">系统</label>
                        <div class="layui-input-block">@Model.system</div>
                    </div>
                    <!--
                        <div class="layui-form-item">
                            <label class="layui-form-label">赞</label>
                            <div class="layui-input-block">0</div>
                        </div>
                    -->
                    <div class="layui-form-item">
                        <label class="layui-form-label">评论内容</label>
                        <div class="layui-input-block">@Html.Raw(Utils.ToTxt(Model.content))</div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">评论时间</label>
                        <div class="layui-input-block">@Model.add_time</div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">审核状态</label>
                        <div class="layui-input-block">
                            @Html.RadioButton("is_lock", 0, Model.is_lock == 0, new { title = "已审核" })
                            @Html.RadioButton("is_lock", 1, Model.is_lock == 1, new { title = "未审核" })
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">回复内容</label>
                        <div class="layui-input-block">
                            @Html.TextArea("reply_content", Model.reply_content, new { @class = "input normal" })
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--/内容-->
    <!--工具栏-->
    <div class="page-footer">
        <div class="btn-wrap">
            <button class="layui-btn icon-btn" id="btnSubmit"><i class="layui-icon layui-icon-ok"></i>提交保存</button>
            <button class="layui-btn layui-btn-warm icon-btn" name="btnReturn" onclick="javascript:history.back(-1);"><i class="layui-icon layui-icon-return"></i>返回上一页</button>
        </div>
    </div>
    <!--/工具栏-->
</form>
@section Scripts{
    <script type="text/javascript">
        layui.use(['validform', 'element', 'jqueryform'], function () {
            $("#form1").initValidform('#btnSubmit', 1);
        });
    </script>
}